package test;

public class Demo9 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()->{
            try {
                Thread.sleep(1000*5);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("Hello Thread");

        });
        t1.start();
        Thread.sleep(1000);
        System.out.println("Hello main");
    }
}
